<?php
    echo validation_errors("<li>", "</li>");
?>

<!-- Edit Form -->
<div class="formPanel02">
    <form id="input_form_module_edit" action="<?php echo base_url(); ?>admin_combo/module/edit/<?php echo $info_edit["module_id"]; ?>" method="post">
        <fieldset>
            <legend>Chỉnh sửa module</legend>
            <table id="tbfrmaction">
                <tr>
                    <td>Tên</td>
                    <td>
                        <input type="text" id="txtName" name="txtName" size="30" class="required" 
                               value="<?php if(isset($info_edit)) echo $info_edit["module_name"]; ?>" />
                    </td>
                    <td>Ghi Chú</td>
                    <td>
                        <textarea id="txtNote" name="txtNote" cols="30" rows="4"><?php if(isset($info_edit)) echo $info_edit["module_note"]; ?></textarea>
                    </td>
                </tr>
                <tr>
                    <td>Vị Trí</td>
                    <td>
                        <input type="text" id="txtOrder" name="txtOrder" size="10" class="required digits" 
                                value="<?php if(isset($info_edit)) echo $info_edit["module_order"]; ?>" />
                    </td>
                    <td>Link</td>
                    <td>
                        <input type="text" id="txtLink" name="txtLink" size="30" class="required" 
                               value="<?php if(isset($info_edit)) echo $info_edit["module_link"]; ?>" />
                    </td>
                </tr>
                <tr>
                    <td>Parent</td>
                    <td>
                        <?php
                            echo "<select id='slModule' name='slModule'>";
                            echo "<option value='0'>--root--</option>";
                                callModule($info_module, 0, "**", $info_edit["module_parent"]);
                            echo "</select>"
                        ?>
                    </td>
                    <td>&nbsp;</td>
                    <td><input type="submit" id="btnSubmit_module" class="button" name="ok" value="Cập nhật" /></td>
                </tr>
            </table>
        </fieldset>
    </form>
</div>